package main

import (
	"fmt"
	"time"
)

// 日期字符串转换成时间戳
func main() {
	var str = "2025/11/15 14:42:22"
	layout := "2006/01/02 15:04:05"

	timeObj, _ := time.ParseInLocation(layout, str, time.Local)
	fmt.Println(timeObj) //2025-11-15 13:42:22 +0800 CST
}
